<div class="layui-fluid layui-anim website-anim-up" id="website-appropriation-records" lay-title="经费拨付记录">
    <div class="layui-row layui-col-space8 website-container">
        <div class="layui-col-md10 layui-col-sm10 layui-col-xs10">
            <table lay-filter="classAppropriationRecordsTable"
                   lay-data="{id: 'classAppropriationRecordsTable'}"></table>
        </div>
    </div>
</div>

<script data-th-inline="javascript" type="text/javascript">
    layui.use(['jquery', 'laydate', 'table', 'website'], function () {
        let $ = layui.jquery,
            laydate = layui.laydate,
            website = layui.website,
            table = layui.table,
            id = [[${id}]],
            $view = $('#website-appropriation-records'),
            tableIns;

        // 渲染表格
        initAppropriationRecordsTable();

        function initAppropriationRecordsTable() {
            tableIns = website.table.init({
                elem: $view.find('table'),
                url: ctx + 'allotmentCapital/getListByDeclareId/' + id,
                id: 'classAppropriationRecordsTable',
                cols: [
                    [
                        {field: 'allotmentTime', title: '拨付时间'},
                        {field: 'allotmentMoney', title: '本次拨付金额'},
                        {field: 'cumulativeMoney', title: '本次拨付钱累计拨付金额'},
                        {field: 'totalMoney', title: '总金额'},
                        {field: 'allocationUnitName', title: '拨付单位'}
                    ]
                ]
            });
        }


    })

</script>